package com.ws.repository;

import com.github.pagehelper.Page;
import com.ws.entity.LoginUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author ：ws
 * @date ：Created in 2023/11/6 16:21
 * @description：TODO
 * @modified By：
 * @version: 1.0.0
 */
public interface LoginUserRepository {
    LoginUser findByUsername(@Param("username") String userName);

    void saveLoginUser(LoginUser loginUser);

    Page<LoginUser> getLoginUserPage(LoginUser loginUser);

    void updateLoginUser(LoginUser loginUser);

    LoginUser getLoginUserBasicInfo(Long loginUserId);

    void delLoginUser(Long loginUserId);
}
